/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Repositorio;

import ClassesBasicas.Funcao;
import erro.ConexaoException;
import erro.RepositorioException;
import java.util.Collection;

/**
 *
 * @author leyla
 */
public interface IRepFuncao {
    
    	public void salvar(Funcao f) throws ConexaoException,RepositorioException;
	
	public Funcao consultar(int codFuncao) throws ConexaoException,RepositorioException;
	
	public Funcao consultar(String nomeFuncao) throws ConexaoException,RepositorioException;
        
        public void alterar(Funcao f) throws ConexaoException, RepositorioException;
	
	public void excluir(int codFuncao) throws ConexaoException,RepositorioException;
	
	public void excluir(String nomeFuncao) throws ConexaoException,RepositorioException;
	
	public Collection<Funcao> listar() throws ConexaoException,RepositorioException;
    
}
